package com.hp_dzzl.mixin.mcr.unusualend.block;

import net.minecraft.world.entity.player.Player;
import net.minecraft.world.level.BlockGetter;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.core.BlockPos;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
import net.mcreator.unusualend.block.ShinyGloopstoneBlock;

@Mixin(ShinyGloopstoneBlock.class)
public class ShinyGloopstoneBlockMixin {
    @Inject(
            method = "canHarvestBlock",
            remap = false,
            at = @At("HEAD"),
            cancellable = true
    )
    private void onCanHarvestBlock(BlockState state, BlockGetter world, BlockPos pos, Player player, CallbackInfoReturnable<Boolean> cir) {
        cir.setReturnValue(true);
    }
}
